let input = 'zzx363711@'
let inputArr = [...input]

// console.log(inputArr)

function passwordCheck(input){
    let lengthValid = input.length >= 8
    let upCharValid = /[A-Z]/.test(input);
    let lowerCharValid = /[a-z]/.test(input);
    let numberValid = /[1-9]/.test(input);
    let specialValid = /[!@#$%^&*(),.?":{}|<>]/.test(input)

    if(lengthValid && upCharValid && lowerCharValid && numberValid && specialValid){
        console.log(input + ',' + true)
    }else{
        console.log(input + ',' + false)
    }
}

passwordCheck(input)